﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="del_cer.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Certificate.del_cer" %>

<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<body>
    <%
        int id = int.Parse(Request.QueryString["id"]);
        var get_test = new TblTestController().FetchAll().Where(x => x.TestCertificate == id).ToList();
        if (get_test.Count != 0)
        {
    %>
    <div class="w3-modal-content w3-animate-top w3-card-8 w3-teal" style="width: 45%">
            <header class="w3-padding w3-center">
                <span onclick="this.parentElement.parentElement.parentElement.style.display='none'" class="w3-closebtn">&times;</span>
                <p class="w3-xlarge">Hãy chuyển/xóa tất cả bài thi/kiểm tra trong mục này để tiếp tục!</p>
            </header>
            <div class="w3-row w3-padding w3-center">
                <a onclick="this.parentElement.parentElement.parentElement.style.display='none'" class="w3-btn w3-teal w3-border w3-border-white"><i class="fa fa-times"></i>&nbsp;Hủy</a>
            </div>
        </div>
    <%}
        else
        { %>
    <div class="w3-modal-content w3-animate-top w3-card-8 w3-teal" style="width: 45%">
            <header class="w3-padding w3-center">
                <span onclick="this.parentElement.parentElement.parentElement.style.display='none'" class="w3-closebtn">&times;</span>
                <p class="w3-xlarge">Bạn có chắc chắn muốn xóa trình độ này ?</p>
            </header>
            <div class="w3-row w3-padding w3-center">
                <a class="btn_deleted_cer w3-btn w3-teal w3-border w3-border-white"><i class="fa fa-trash"></i>&nbsp;Xóa</a>
                <a onclick="this.parentElement.parentElement.parentElement.style.display='none'" class="w3-btn w3-teal w3-border w3-border-white"><i class="fa fa-times"></i>&nbsp;Hủy</a>
            </div>
        </div>
    <%} %>
</body>
</html>
